﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MathMaxMin
{
    class Program
    {
        /// <summary>
        /// MathMaxMin
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Console.Write("请输入一个实数：");
            double num1 = Convert.ToDouble(Console.ReadLine());
            Console.Write("请再输入一个实数：");
            double num2 = Convert.ToDouble(Console.ReadLine());
            double maxnum = Math.Max(num1, num2);
            double minnum = Math.Min(num1, num2);
            Console.WriteLine($"两个数中最大为：{maxnum},最小为：{minnum}");
            Console.ReadKey();
        }
    }
}
